package com.sharemarking.application.common.entity;


import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.OneToOne;
import javax.persistence.Table;

import com.sharemarking.application.common.BaseEntity;


@Entity
@Table(name="sys_department")
public class Department extends BaseEntity {
	
	private String name;
	private String Manager;
	private String describer;
	
	
	@ManyToOne(cascade=CascadeType.PERSIST)
	private Company company;
	
 	public Company getCompany() {
		return company;
	}

	public void setCompany(Company company) {
		this.company = company;
	}

 	@OneToOne(cascade=CascadeType.ALL)
 	@JoinColumn(name="employeeid")
	private Employee employee1;
	
	public Employee getEmployee1() {
		return employee1;
	}

	public void setEmployee1(Employee employee1) {
		this.employee1 = employee1;
	}
	
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getManager() {
		return Manager;
	}

	public void setManager(String manager) {
		Manager = manager;
	}

	public String getDescriber() {
		return describer;
	}

	public void setDescriber(String describer) {
		this.describer = describer;
	}

	

	

	
}
